package cnu.ldc.io;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class CharSystemTest {

	public static void main(String[] args) {
		Reader fr;
		try {
			fr = new FileReader("d:\\1.txt");
			char[] b=new char[6];
			int lenth=0;
			fr.read(b);
		
			for(int i=0;i<b.length;i++) {
				System.out.print(b[i]);
			}
			System.out.print("--------");
			BufferedReader bf=new BufferedReader(fr);
			String y;
			while((y=bf.readLine())!=null) {
			System.out.println(y);
			}
		
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
	}

}
